Showing posts with label Grub Boot loader. Show all posts
Showing posts with label Grub Boot loader. Show all posts

how to change ubuntu grub boot order

FREQUENTLY ASKED QUESTIONS  (Ubuntu)
Q: How to change grub boot order in Ubuntu linux?


If you installed other operating systems with Ubuntu linux, you may need to change the default booting OS from Ubuntu to other installed OS like Windows7, Win XP, etc.
click to enlarge
You must have a grub menu like  screenshot(left).
Here i am changing the default boot target from Ubuntu to windows7. As the screenshot, boot order number of windows7 is 4. (order counts from zero)



In command line mode edit the grub configuration file
user@ubuntu:~$ sudo vi /etc/default/grub
click to enlarge
As per the first grub screenshot, to change default boot to windows7 
Edit the line 
GRUB DEFAULT=4
#and save the file








After editing grub file run the below command to validate
user@ubuntu:~$ sudo update-grub
                         or
user@ubuntu:~$ sudo update-grub /boot/grub/grub.cfg


Reboot to verify new boot target 
user@ubuntu:~$ sudo reboot

Recover windows boot loader after removing linux partition

FREQUENTLY ASKED QUESTIONS  (Windows bootloader recovery)
Q:How to remove Linux grub boot loader completely after deleting linux partition?
Q:How to recover windows boot loader after removing linux?


Follow the steps to remove grub completely and recover windows boot loader
Step1: Boot from Windows setup CD/DVD  (eg:Windows XP setup disc)


Step2: Select the "Repair" option on the first screen.


Step3: Select the windows os installed drive.
eg: 
1: C:\WINDOWS
(now press "1" and press enter.


Step4: When you are prompted, type the Administrator password.
(Now you will get a small command prompt window.)

Step5: type "fixmbr" and  press enter.
Are you sure you want to write a new MBR ?
Press "y" and press enter.
The new master boot record has been written.

Step6: Type "exit" to reboot and you can boot to Windows after root.

Remove grub password in linux

FREQUENTLY ASKED QUESTIONS  (Grub boot loader)
Q: How can i remove or disable grub menu password?


Removing grub password can be done by editing the grub.conf configuration file. Only thing you need to do is remove or disable the line starts with "password".

For example:In my CentOS-6, the line starts with password looks like below.
password --md5 $1$rWR/yk8A$XkDFjPZvI.om9nUFC2beF. 

[root@server ~#]vi /etc/grub.conf                       or in /boot/grub/grub.conf
#password --md5 $1$rWR/yk8A$XkDFjPZvI.om9nUFC2beF.   (Add "#" to disable the line)
#(now save the grub.conf file)
Disable line by adding "#". Click on image to enlarge

How to change Grub Boot Order

This is "How-to" change the default booting Operating system in the grub menu. You may have multiple OS like Windows and linux in your system and you may need the change the default booting OS to Windows or to Linux. Follow the steps if you are using a rpm based distribution.

Login as superuser and edit the grub configuration file. Don't forget to backup the grub configuration file before editing.
[root@server ~#]vi /etc/grub.conf
Your grub config file may look like below
Grub.conf configuration file


Well, On the left side is my grub.conf configuration file. I have installed Windows Server2003 and CentOS6 Server installed.  Here  default boot order is CentOS that is (default=0). 
To change the default boot order to windows 2003 server  change the value to "1" 
( OS order number starts from zero )
You can also simply change the default timeout seconds values( i used 2 seconds)

Related Posts Plugin for WordPress, Blogger...

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Bluehost Coupons